mixin foreign-img(params)
  -var x = 0
  -var y = 0
  -var url = ''
  if typeof params === 'object'
    -x = params.x || x
    -y = params.y || y
    -var {url, width, height} = images[params.img]
  else 
    -var {url, width, height} = images[params]
  g
    foreignObject(x=`${x}`, y=`${y}`, width=width, height=height)
      svg(style=`background-image:url(${url});background-repeat:no-repeat;background-size:100%;background-attachment:scroll;display:inline-block;background-position:0 0;width:100%;vertical-align:top;-webkit-tap-highlight-color:transparent;user-select:none`, viewBox=`0 0 900 1467`, x=`0px`, y=`0px`)
    block
